package com.qd.common.panda.domain.entity.order;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 订单统计
 *
 * @author sjk
 * @create 2022-10-28 16:21
 * @since 1.0.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@ToString
public class OrderRefundStatisticsDTO extends TotalPreferentialAmountDTO {
    /**
     * 实际支付金额
     */
    private BigDecimal payAmount;
    /**
     * 实际支付金额显示
     */
    private String payAmountDisplay;
    /**
     * 订单数量
     */
    private Integer quantity;

    @Override
    public void freeData() {
        this.payAmount = null;
        this.payAmountDisplay = null;
        this.quantity = null;
    }
}